package com.cxh.dataservice.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author ChenXH
 * @since 2020-07-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ep_operator_interpreter")
public class EpOperatorInterpreter implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 唯一主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 父节点操作组ID
     */
    private Integer operatorId;

    /**
     * 操作名称
     */
    private String operatorInterName;

    /**
     * 操作者作者
     */
    private String operatorInterAuthor;

    /**
     * 描述
     */
    private String operatorInterDesc;

    /**
     * 操作编码，唯一
     */
    private String operatorInterCode;

    /**
     * 脚本类型，默认sql
     */
    private String interpreterType;

    /**
     * 数据实例（默认datalake）
     */
    private String interpreterDatasource;

    /**
     * 查询字段详情
     */
    private String operatorFieldDetailsName;

    /**
     * 操作具体内容
     */
    private String interpreterContent;

    /**
     * 根据dataview，默认array
     */
    private String outputFormat;

    /**
     * 状态'上线(0) 下线(1)'
     */
    private Integer status;

    /**
     * 创建时间
     */
    private LocalDateTime gmtCreate;

    /**
     * 修改时间
     */
    private LocalDateTime gmtModify;


    public static final String ID = "id";

    public static final String OPERATOR_ID = "operator_id";

    public static final String OPERATOR_INTER_NAME = "operator_inter_name";

    public static final String OPERATOR_INTER_AUTHOR = "operator_inter_author";

    public static final String OPERATOR_INTER_DESC = "operator_inter_desc";

    public static final String OPERATOR_INTER_CODE = "operator_inter_code";

    public static final String INTERPRETER_TYPE = "interpreter_type";

    public static final String INTERPRETER_DATASOURCE = "interpreter_datasource";

    public static final String OPERATOR_FIELD_DETAILS_NAME = "operator_field_details_name";

    public static final String INTERPRETER_CONTENT = "interpreter_content";

    public static final String OUTPUT_FORMAT = "output_format";

    public static final String STATUS = "status";

    public static final String GMT_CREATE = "gmt_create";

    public static final String GMT_MODIFY = "gmt_modify";

}
